/* Copyright 2001,2002,2003 NAH6 BV
 * All Rights Reserved
 *
 *  $Header: /var/lib/cvs/secphone/ui/ce/PhoneOptions.h,v 1.8 2003/11/21 12:39:24 itsme Exp $
 *
 *
 * This is the global configuration data.
 *
 */


#ifndef __PHONEOPTIONS_H__

#include <windows.h>
#include "vectorutils.h"

typedef struct _tagPhoneOptions
{
    // used for debugging or profiling the CELP, to separate encoding from decoding
    bool start_muted;

    // aka 'quick-connect' - causes the phone to silently pick up, and exchange keys,
    //   giving the user a quiker connect experience.
    bool auto_answer;

    // how often pings are sent, used to measure the line delay
    long ping_interval;
    // how large the ping measurements are.
    long ping_size;

    // how often to resend packets for various protocols.
    long dhresend_delay;            // 2 seconds
    long license_resend_delay;      // 15 seconds
    long aa_state_resend_delay;     // 5 seconds

    // what device/line to use for making calls
    long line_type;         // chooses between gsmtapi, desktop and modem
    long modem_port;
    long modem_type;

    // what type of remote device to connect to
    long call_type;     // todo: this should be remembered separately for each phonenumber!

    // full path of CryptoPhone.exe ( including the filename )
    TCHAR exepath[MAX_PATH];

    // full path to the directory containing the callprogress tones
    TCHAR soundpath[MAX_PATH];

    // full path of the helpfile 
    TCHAR helpfile[MAX_PATH];

} PhoneOptions;

extern PhoneOptions g_options;

#define __PHONEOPTIONS_H__
#endif
